<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
    content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>首页</title>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
      Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
</body>

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.3/mobile-detect.min.js"></script>

<script type="text/javascript">
  var Ip = returnCitySN['cip']
  var cityname = returnCitySN['cname']
  localStorage.setItem('Ip', Ip)
  localStorage.setItem('cityname', cityname)
  var md = new MobileDetect(window.navigator.userAgent)
  var browser = {
    mobile: md.mobile()? md.mobile() : '',  //返回手机或平板，若不是移动设备返回null，检测不到设备返回UnknownPhone或UnknownTablet或UnknownMobile
    mobileGrade: md.mobileGrade()? md.mobileGrade(): '', //返回移动设备级别
    phone: md.phone()? md.phone(): '', //返回移动设备厂商
    userAgent: md.userAgent()? md.userAgent(): '', //返回浏览器
    os: md.os()? md.os(): '', //返回系统
    version: md.version('Webkit')? md.version('Webkit'): '',
    versionStr: md.versionStr('Build')? md.versionStr('Build'): '',
    match: md.match('playstation|xbox')? md.match('playstation|xbox'): ''
  }
  localStorage.setItem('browser', JSON.stringify(browser))
</script>
</html>